import request from "@/utils/request.js";
/**
 * 获取最新的团活动
 * @param data
 * @returns {*}
 */
export function getGroupNewest(schoolId) {
  return request.get(`/campus/activityForGroup/app/groupNewest?schoolId=${schoolId}`);
}


export function groupDetail(id) {
  return request.get(`/campus/activityForGroup/app/`+id);
}

export function groupList(params) {
  return request.get(`/campus/activityForGroup/app/groupList`,params);
}
export function myGroupInfos(params) {
  return request.get(`/campus/activityForGroup/app/myGroupInfos`,params);
}

export function createGroup(params) {
  return request.post(`/campus/activityForGroup/app`,params);
}


export function abortGroup(params) {
  return request.put(`/campus/activityForGroup/app/abort`,params);
}

